package net.xdclasss.demo_project.controller;

import net.xdclasss.demo_project.config.WXConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("tpl")
public class FreefmakerController {
    @Autowired
    private WXConfig wxConfig;
    @RequestMapping("freefmaker")
    public String index1(ModelMap modelMap){
        modelMap.addAttribute("setting",wxConfig);
        return "user/fm/index";
    }

    @RequestMapping("thymeleaf")
    public String index2(ModelMap modelMap){
        modelMap.addAttribute("setting",wxConfig);
        return "tl/index";
    }

}
